import { defineConfig } from 'vite'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vue from '@vitejs/plugin-vue'
import { manualChunksPlugin } from 'vite-plugin-webpackchunkname'
// import requireTransform from 'vite-plugin-require-transform';
// const path = require('path')
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    vueJsx(),
    // requireTransform({
    //   fileRegex: /.ts$|.vue$/
    // }),
    manualChunksPlugin(),
  ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src')
    }
  },


  server: {
    host: '0.0.0.0'
  }
})
